const utils = require('../../../common/util/util')

Component({
    options: {
        addGlobalClass: true
    },
    properties: {
        'xdata' : {
            type : Object ,
            value : {}
        },
        'xid' : {
            type : String ,
            value : ''
        },
        'xweek' : {
            type : String ,
            value : ''
        }
    },
    data: {

    },

    observers: {
        /* 异步取值 */
        'xdata': function() {
            
        },

        'xid' : function (n) {
            console.log(n)
        }
    },

    lifetimes : {
        attached : function () {
            
        },
        ready : function () {
            console.log()
        }
    } ,
    methods: {
        xToEva : function () {
            let that = this
            let id = that.properties.xid
            let week = that.properties.xweek
            wx.navigateTo({
                url: '/svc/pages/evl/odet/index?id=' + id + '&week=' + week,
            })
        }
    }
})
